package net.biancheng.bean;

import lombok.Data;
import net.biancheng.common.core.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Entity;

/**
 * @author: lb
 * @date: 2023/10/31 10:57
 * @desc: 字典数据
 **/
@Data
@Entity
@org.hibernate.annotations.Table(appliesTo = "sys_dict_data", comment = "字典数据表")
public class SysDictData extends BaseEntity {

    @Column(name = "dict_type", columnDefinition = "varchar(100) comment '字典类型标识'")
    private String dictType;//字典类型标识

    @Column(name = "dict_label", columnDefinition = "varchar(50) comment '字典标签'")
    private String dictLabel;//字典标签

    @Column(name = "dict_value", columnDefinition = "varchar(20) comment '字典键值'")
    private String dictValue;//字典键值

    @Column(name = "dict_sort", columnDefinition = "int(10) comment '字典排序'")
    private Integer dictSort;//字典排序

    @Column(name = "is_default", columnDefinition = "char(1) comment '是否默认值 Y-是 N-否'")
    private String isDefault;//是否默认值  Y-是 N-否

    @Column(name = "status", columnDefinition = "char(1) comment '状态 （0启用 1禁用）'")
    private String status;//状态 0-启用 1-禁用

    /** 样式属性（其他样式扩展） */
    @Column(name = "css_class", columnDefinition = "varchar(50) comment '样式属性'")
    private String cssClass;

    /** 表格字典样式 */
    @Column(name = "list_class", columnDefinition = "varchar(20) comment '表格字典样式'")
    private String listClass;

}
